m=input('请输入一行字符：')
letter=0
space=0
figure=0
other=0
for i in m:
    if i.isalpha():
        letter+=1
    elif i.isspace():
        space+=1
    elif i.isdigit():
        figure+=1
    else:
        other+=1
print('英文字母的个数为{}、空格的个数为{}、数字的个数为{},其它字符的个数为{}'.format(letter,space,figure,other))
